package com.demo.k8s.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 注意：@FeignClient的name对应k8s的Service的名称
 */
@FeignClient(name = "service-k8s-provider")
public interface KubernestProviderFeign {

    @GetMapping("/provider")
    String provider(@RequestParam("name") String name);
}
